<div id="role-index">

        <div class="search">
            <a class="adds" href="__APP__/Role/add">添加分组</a>
                <form action="__APP__/Role/index" method="post" class="select">
                    关键字 <input type="text" name="key" /> 按
                    <select name="search">
                        <option value="1">ID</option>
                        <option value="2">分组名</option>
                        <option value="3">分组别名</option>
                    </select>
                    <empty name="list">
                        <input type="submit" value="搜索" disabled="disabled" />
                        <else />
                        <input type="submit" value="搜索" />
                    </empty>
                </form>

        </div>

        <form action="__APP__/Role/del" method="post" name="delete" class="delete">
            <table>
                <thead>
                    <tr>
                        <th style="width:30px;">ID</th>
                        <!--<th style="width:70px;">图片</th>-->
                        <th style="width: 150px;">分组名称</th><th style="width:150px;">分组别名</th>
                        <th style="width:100px;">所需经验</th><th style="width:70px;">用户数</th>
                        <th style="width:50px;">排序</th><th style="width:80px;">是否开启</th>
                        <th>描述</th>
                        <th style="width:80px;">邮件</th>
                        <th class="action" style="width:50px;"><input class="allselect" type="button" value="全选" /></th>
                    </tr>
                </thead>
               <tbody>
                   <empty name="list">
                       <tr><td colspan="10" style="height:50px;">暂无数据</td></tr>
                       <else/>
                       <volist name="list" id="vo">
                           <tr>
                               <td><{$vo.id}></td>
                               <!--<td class="img"><a href="__APP__/Role/index/sid/<{$vo.id}>" title="进入该食材子分类"><img src="__PUBLIC__/Content/Role/<{$vo.image}>" /></a></td>-->
                               <td><a href="__APP__/Role/edit/id/<{$vo.id}>" title="修改该食材栏目信息"><{$vo.name}></a></td>
                               <td><{$vo.alias}></td>
                               <td><{$vo.needexp}></td>
                               <td><a href="__APP__/User/index/rid/<{$vo.id}>"><{$vo['roleuser']|count}></a></td>
                               <td><{$vo.sort}></td>
                               <eq name="vo.publish" value="1">
                                        <td>是</td>
                                   <else/>
                                        <td>否</td>
                               </eq>

                               <gt name="vo.description|mb_strlen='utf-8'" value="30">
                                        <td title="<{$vo.description}>"><{$vo.description|mb_substr=0,30,"utf-8"}>...</td>
                                   <else/>
                                       <td><{$vo.description}></td>
                               </gt>
                               <td><a href="__APP__/SetMail/sendmailview/rid/<{$vo.id}>">群发</a></td>
                               <td><input type="checkbox" name="actions[]" value="<{$vo.id}>" /></td>
                           </tr>
                       </volist>
                   </empty>
               </tbody>
                <tfoot>
                    <empty name="show">
                        <tr><td class="fpage" colspan="10">暂无数据</td></tr>
                        <else/>
                        <tr><td class="fpage" colspan="9"><{$show}></td><td><input class="buttondel" type="button" value="删除" /></td></tr>
                    </empty>
                </tfoot>
            </table>
        </form>
</div>
<script type="text/javascript" src="../Public/js/role.js"></script>